package cn.ww.teach.controller;

import java.util.Random;

/**
 * Created by Wangwang on 2017/12/21.
 */
public class Poker {
    //红桃 黑桃 方块 梅花 
    private static final String A1 = "A1";
    private static final String A2 = "A2";
    private static final String A3 = "A3";
    private static final String A4 = "A4";
    private static final String A5 = "A5";
    private static final String A6 = "A6";
    private static final String A7 = "A7";
    private static final String A8 = "A8";
    private static final String A9 = "A9";
    private static final String A10 = "A10";
    private static final String A11 = "A11";
    private static final String A12 = "A12";
    private static final String A13 = "A13";

    private static final String B1 = "B1";
    private static final String B2 = "B2";
    private static final String B3 = "B3";
    private static final String B4 = "B4";
    private static final String B5 = "B5";
    private static final String B6 = "B6";
    private static final String B7 = "B7";
    private static final String B8 = "B8";
    private static final String B9 = "B9";
    private static final String B10 = "B10";
    private static final String B11 = "B11";
    private static final String B12 = "B12";
    private static final String B13 = "B13";


    private static final String C1 = "C1";
    private static final String C2 = "C2";
    private static final String C3 = "C3";
    private static final String C4 = "C4";
    private static final String C5 = "C5";
    private static final String C6 = "C6";
    private static final String C7 = "C7";
    private static final String C8 = "C8";
    private static final String C9 = "C9";
    private static final String C10 = "C10";
    private static final String C11 = "C11";
    private static final String C12 = "C12";
    private static final String C13 = "C13";


    private static final String D1 = "D1";
    private static final String D2 = "D2";
    private static final String D3 = "D3";
    private static final String D4 = "D4";
    private static final String D5 = "D5";
    private static final String D6 = "D6";
    private static final String D7 = "D7";
    private static final String D8 = "D8";
    private static final String D9 = "D9";
    private static final String D10 = "D10";
    private static final String D11 = "D11";
    private static final String D12 = "D12";
    private static final String D13 = "D13";

    private static final String K1 = "K1";
    private static final String K2 = "K2";

    public void init() {

    }

    private int getNextPokerIndex() {
        return 0;
    }

    private int[] getRandomIndex(int restNum) {
        Random random = new Random();
        int[] resultArr = new int[3];
        int firstResult = random.nextInt(restNum);
        resultArr[0] = firstResult;
        int num1 = random.nextInt(restNum);
        while (num1 == firstResult) {
            num1 = random.nextInt(restNum);
        }
        resultArr[1] = num1;
        int num2 = random.nextInt(restNum);
        while (num2 == firstResult || num2 == num1) {
            num2 = random.nextInt(restNum);
        }
        resultArr[2] = num2;
        return resultArr;
    }

}
